package java19_1_4;

/**
 * @author yuisama
 * @date 2022/01/06 19:49
 **/
class A {
    public A() {
        this.func();
    }
    public void func() {
        System.out.println("A 的 func");
    }
}
public class B extends A{
    private int num = 10;
    public B(int num) {
        this.num = num;
    }
    public void func() {
        System.out.println("B 的 func，num = " + num);
    }
    public static void main(String[] args) {
        new B(100).func();
    }
}